<?

       /*
function erreur($message){
    echo"<table width=\"85%\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#000000\" background=\"<? echo $templates ?>Fond.jpg\"><tr><td><strong><font color=\"#FF0000\">$message</font></strong></td></table><BR>";
}        */


$query="SELECT race_ville FROM urace WHERE race_id=$user_race";
$resultat=mysql_query($query);
$tmp=mysql_fetch_row($resultat);


$i=0;
$classex=EXPLODE("/",$tmp[0]);
FOREACH($classex as $element){ //FOREACH #02 d'autorisation  
			 
  	    $image[$i]=$element;
		$image_id=$i ;      
		$i++;
}//	   






?>



</head>


<body>
<div align="center"><img src="<? echo $templates ?>ligne2.png" width="390" height="35"><br></div>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" CLASS=TD2>
        <tr> 
          <td><p align="center"><strong><u><font size="6">Enregistrement de personnage.</font></u></strong></p>
            <div align="center">
              <table width="50%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
                <tr>
                  <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" CLASS=TD1>
                      <tr> 
                        <td><div align="center"> <u><strong><font size="5">Confirmation</font></strong></u></div></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
              <br>
            </div>
            <form action="index.php" method="POST" name="form1" value="ville">
              <table width="75%" border="1" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="52%"><strong>Nom du personnage</strong></td>
                  <td width="48%"> <? echo $user_name; ?> </td>
                </tr>
                <tr> 
                  <td><strong>Nom du royaume</strong></td>
                  <td><? echo $user_royaume; ?></td>
                </tr>
                <tr> 
                  <td><strong>Race</strong></td>
                  <td>
                    <?
				  $query="SELECT race_name FROM urace WHERE race_id=$user_race";
				  $resultat=mysql_query($query);
				  $tmp=mysql_fetch_array($resultat);
				   echo $tmp[0]; ?>
                  </td>
                </tr>
                <tr> 
                  <td><strong>Classe</strong></td>
                  <td>
                    <? 
				  
				  $query="SELECT classe_name FROM uclasse WHERE classe_id=$user_classe";
				  $resultat=mysql_query($query);
				  $tmp=mysql_fetch_array($resultat);
				  
				  echo $tmp[0]; ?>
                  </td>
                </tr>
              </table>

           </td>
                </tr>
              </table>
              <p>&nbsp; </p>
              <p value="ville"> </p>
              <p align="center"> 
                <?
echo"<input name=\"$SID\" type=\"hidden\" id=\"$SID\" value=\"$SID\">";
         echo"<input name=\"p\" type=\"hidden\" id=\"p\" value=\"creation_perso\">";

         $MODE="confirmation";
         SESSION_REGISTER("MODE");
         $CREATION_PERSO=0;
         SESSION_REGISTER("CREATION_PERSO");
		
?>
                <input name="mode" type="hidden" id="mode" value="confirmation">
                <input background : url(fond.jpg) type="submit" name="Submit" value="Terminer" onclick="this.value='Patientez...'">
              </p>
            </form></tr>
      </table></td>
  </tr>
</table>
<p align="center"><img src="<? echo $templates ?>ligne2.png" width="390" height="35"></p>
</body>
</html>
